package com.novax.ex.activity.infrastructure.mapper;
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.novax.ex.activity.infrastructure.entity.TaskUserProgress;
import com.novax.ex.common.base.BaseMapper;

/**
 * @author Hsylient
 * @description 针对表【task_user_progress(用户任务完成情况统计)】的数据库操作Mapper
 * @createDate 2023-06-21 11:41:46
 * @Entity com.novax.ex.activity.infrastructure.entity.TaskUserProgress
 */
public interface TaskUserProgressMapper extends BaseMapper {

    /**
     * 根据taskUserProgress对象里边的属性进行查询 只要不为空就进行查询 这样做可以相当于一个通用的条件查询
     *
     * @param taskUserProgress 参数
     * @return taskUserProgress 实体对象
     */
    TaskUserProgress selectByCondition(TaskUserProgress taskUserProgress);

    /**
     *
     *
     * @param uid 用户ID
     * @return version_id
     */
    Long selectVersion(Long uid);

    int updateStepByUid(@Param("uid") Long uid);


    TaskUserProgress selectByUid(@Param("uid") Long uid);

    int updateByUid(@Param("uid") Long uid, @Param("finishTime") Date finishTime);


    int updateFinishCount(@Param("uid") Long uid, @Param("finishTime") Date finishTime);
}
